home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-06 | 3.5 KB | 137 lines | [TEXT/KAHL] |
- $$Message User InitExit, u:InitExit$Prototype.name$.cp
- $$File u:InitExit$Prototype.name$.cp
- /* $CopyRight$ */
- /* InitExit$Prototype.name$ Program Init and Exit routines
-
- File name: InitExit$Prototype.name$.c
- Function: This module contains the extra program initialization
- routine as well as the program exit and cleanup routine.
- History: $Date$ Original by $Author$
-
- */
-
- #include "mmCommon$Prototype.name$.h" /* Common */
- #include "Common$Prototype.name$.h" /* Common */
-
- /* ======================================================= */
- /* ======================================================= */
-
- /* Routine: AE_OpenedApplication */
- /* Purpose: Called one time, when this program is opened. */
-
- OSErr AE_OpenedApplication(AppleEvent *message,AppleEvent *reply,long refcon)
- {
-
- return(noErr);
- }
-
- /* ======================================================= */
-
- /* Routine: AE_QuittingApplication */
- /* Purpose: Called one time, when this program is quit. */
-
- OSErr AE_QuittingApplication(AppleEvent *message,AppleEvent *reply,long refcon)
- {
-
- return(noErr);
- }
-
- /* ======================================================= */
-
- /* Routine: InitExtras */
- /* Purpose: Extra program initialization */
-
- void CApplication::InitExtras() /* Initialize the application */
- {
- inherited::InitExtras();
- }
-
- /* ======================================================= */
-
- /* Routine: ExitExtras */
- /* Purpose: Extra program cleanup upon exit from our program */
- /* This is where left over buffers are released and any open files are closed */
-
- void CApplication::ExitExtras() /* Exit the application */
- {
- inherited::ExitExtras();
- }
-
- /* ======================================================= */
-
- /* Routine: AE_OpenThisFile */
- /* Purpose: Called with files to be opened. Called both at program */
- /* startup and during running. */
-
- void AE_OpenThisFile(FSSpec *theFSSpec,short WhichFile,short TotalToOpen)
- {
-
- }
-
- /* ======================================================= */
-
- /* Routine: AE_PrintThisFile */
- /* Purpose: Called with files to be printed. Called both at program */
- /* startup and during running. */
-
- void AE_PrintThisFile(FSSpec *theFSSpec,short WhichFile,short TotalToOpen)
- {
-
- }
-
- $$if Option.EXTRAHOOKS
- /* ======================================================= */
-
- /* Routine: TopOfLoop */
- /* Purpose: HOOK at top of main event loop */
-
- void CApplication::TopOfLoop()
- {
- inherited::TopOfLoop();
- }
-
- /* ======================================================= */
-
- /* Routine: FilterEvent */
- /* Purpose: HOOK, Allow user to filter all events before the main loop handles them */
- /* Set DoIt to TRUE to let the main loop handle the event. */
-
- void CApplication::FilterEvent(Boolean *DoIt, EventRecord *myEvent)
- {
-
- inherited::FilterEvent(DoIt,myEvent);
-
- }
-
- /* ======================================================= */
-
- void CApplication::Handle_Extra_User_Event(UserEventPRec theUserEvent) /* Hook, to handle user events */
- {
- inherited::Handle_Extra_User_Event(theUserEvent);
- }
-
- /* ======================================================= */
-
- /* Routine: OpenSplashWindow */
- /* Purpose: Open spash or personalization window */
-
- void CApplication::OpenSplashWindow()
- {
- inherited::OpenSplashWindow();
- }
-
- /* ======================================================= */
-
- /* Routine: CloseSplashWindow */
- /* Purpose: Close spash or personalization window */
-
- void CApplication::CloseSplashWindow()
- {
- inherited::CloseSplashWindow();
- }
-
- $$endif Option.EXTRAHOOKS
- /* ======================================================= */
- /* ======================================================= */
- $$CloseFile
-